<?php
/**
 * Created by PhpStorm.
 * User: longyu
 * Date: 2016/6/2
 * Time: 16:31
 */
header("Content-type: text/html; charset=utf-8");
require "redis.php";
$id=$_GET["id"];
$data=$redis->hGetAll("user:{$id}");
?>

<form action="doEdit.php" method="post">
    <input type="hidden" value="<?php echo $data["uid"] ?>" name="uid"/>
    用户名:<input type="text" name="username" value="<?php echo $data["username"] ?>"><br>
    密码:<input type="password" name="password" value="<?php echo $data["password"] ?>"><br>
    年龄:<input type="text" name="age" value="<?php echo $data["age"] ?>"><br>
    <input type="submit" value="提交">
</form>
